package com.trinity.uniquefees.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.trinity.common.annotation.Excel;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Objects;

/**
 * 订购教程名单对象 uf_student_book
 *
 * @author 董诗攀
 * @date 2023-12-11
 */
@Data
@ToString
public class UfStudentBookVO implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String studentName;
    /**
     * 课程性质
     */
    @Excel(name = "课程性质")
    private String courseType;
    /**
     * 课程名称
     */
    @Excel(name = "课程名称")
    private String courseName;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        UfStudentBookVO bill = (UfStudentBookVO) o;
        return Objects.equals(studentName, bill.studentName) &&
                Objects.equals(courseName, bill.courseName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(studentName, courseName);
    }

}
